package com.admin.boot.modules.online.controller;

import com.admin.boot.common.utils.DefaultFields;
import com.admin.boot.common.utils.FieldType;
import com.admin.boot.common.utils.Result;
import com.admin.boot.modules.online.entity.OnlineTableField;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Set;

/**
 * (OnlineTableField)表控制层
 *
 * @author makejava
 * @since 2024-01-10 09:36:53
 */
@RestController
@RequestMapping("/onlineTableField")
public class OnlineTableFieldController  {



    @GetMapping("/defaultFields")
    public Result<?> getDefaultFields(){
        List<OnlineTableField> defaultFields = DefaultFields.defaultFields;
        return Result.OK(defaultFields);
    }



    @GetMapping("/getFieldType")
    public Result<?> getFieldTypeList(){
        Set<String> strings = FieldType.fieldTypeMap.keySet();
        return Result.OK(strings);
    }
}

